/**
 * result检测工具，检查Result是否请求成功
 * @param {*} res 
 * @returns 
 */
export const checkResult = (res) => {
  var isSuccess = false;
  if (res.code === Number(process.env.VITE_CODE_SUCCESS)) {
    isSuccess = true;
  } else {
    isSuccess = false;
  }
  return isSuccess;
};
